package com.hqyj.springBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.springBoot.modules.account.entity.Resource;
import com.hqyj.springBoot.modules.common.entity.ResultEntity;
import com.hqyj.springBoot.modules.common.entity.SearchBean;

import java.util.List;

public interface ResourceService {
    ResultEntity<Resource> addResource(Resource resource);

    ResultEntity<Resource> updateResourceByResource(Resource resource);

    ResultEntity<Resource> deleteResourceById(int id);

    Resource selectResourceById(int id);

    PageInfo<Resource> getResourcesBySearchBean(SearchBean searchBean);

    List<Resource> selectResourceByRoleId(int roleId);
}
